package com.turtle3d.formallanguage.grammar;

import java.util.ArrayList;

import com.turtle3d.formallanguage.symbol.Condition;
import com.turtle3d.formallanguage.symbol.Symbol;
import com.turtle3d.formallanguage.symbol.SymbolClass;


public class Production
{
	private Symbol leftSide;
	private ArrayList<SymbolClass> rightSide;
	private Condition condition = null;	
	private float probability = 1f;
	
	public Symbol getLeftSide()
	{
		return leftSide;
	}
	public void setLeftSide(Symbol leftSide)
	{
		this.leftSide = leftSide;
	}
	public ArrayList<SymbolClass> getRightSide()
	{
		return rightSide;
	}
	public void setRightSide(ArrayList<SymbolClass> rightSide)
	{
		this.rightSide = rightSide;
	}

	public float getProbability()
	{
		return probability;
	}

	public void setProbability(float probability)
	{
		this.probability = probability;
	}
	public Condition getCondition() {
		return condition;
	}
	public void setCondition(Condition condition) {
		this.condition = condition;
	}
		
}
